<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="zh" >
<head>
    <th:block th:include="include :: header('新增医废车')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-truck-add">
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">医废处理单位：</label>
                <div class="col-sm-8">
                    <select name="disposalId" class="form-control" th:with="v=${@dep.getYFMedicalWasteList()}" required>
                        <option value="" >&#45;&#45;&#45;&#45;&#45;&#45;请选择医疗废物处置单位&#45;&#45;&#45;&#45;&#45;&#45;</option>
                        <option th:each="l : ${v}" th:text="${l.deptName}" th:value="${l.deptId}"></option>
                    </select>
                </div>
            </div>
           <!-- <div class="form-group">
                <label class="col-sm-3 control-label">处置公司id：</label>
                <div class="col-sm-8">
                    <input name="disposalId" class="form-control" type="text">
                </div>
            </div>-->
            <div class="form-group">    
                <label class="col-sm-3 control-label">车牌号：</label>
                <div class="col-sm-8">
                    <input name="truckLicencePlate" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group" >
                <label class="col-sm-3 control-label">医废车类型：</label>
                <div class="col-sm-8">
                    <select name="dictTruckType" class="form-control m-b" th:with="type=${@dict.getType('yf_truck')}"
                            required>
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">状态：</label>
                <div class="col-sm-8">
                    <div class="radio-box" th:each="dict : ${@dict.getType('sys_normal_disable')}">
                        <input type="radio" th:id="${'status_' + dict.dictCode}" name="status"
                               th:value="${dict.dictValue}"
                               th:checked="${dict.default}">
                        <label th:for="${'status_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>

           <!-- <div class="form-group">
                <label class="col-sm-3 control-label">删除状态 del_flag：</label>
                <div class="col-sm-8">
                    <input name="delFlag" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">创建者 sys_user表：</label>
                <div class="col-sm-8">
                    <input name="createId" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">更新者 sys_user表：</label>
                <div class="col-sm-8">
                    <input name="updateId" class="form-control" type="text">
                </div>
            </div>-->
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "yf/truck"
        $("#form-truck-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-truck-add').serialize());
            }
        }
    </script>
</body>
</html>